<?php
	header('content-type:text/html;charset=utf-8');
	require 'mysqlpublic.php';
	$phone=$_POST['phone'];
	$pw=md5($_POST['password']);
	$tjm=$_POST['yaoqingma'];
	if((!$phone)||(!$pw)){
		echo '非法访问';
	}
	$sql="insert into userinfo values(null,'$phone','$pw','$tjm');";
	mysql_query($sql);
	mysql_close($conn);
	$url="../html/index.html"; 
	echo "<script type='text/javascript'>"; 
	echo "location.href='$url'"; 
	echo "</script>"; 
?>